import apirequest from '@/utils/apirequest'

// 库区分页查询
export const getAreas = params => apirequest.get('/area/pageDetail', { params })

// 库区修改
export const updataArea = data => apirequest.put('/area', data)

// 获取库区
export const getKQ = () => apirequest.get('/codeFactory/next/KQ')

// 添加货区
export const addArea = data => apirequest.post('/area', data)

// 查询库区
export const searchArea = id => apirequest.get(`/area/${id}`)

// 导入
export const importArea = data => apirequest.post('/area/importExcel', data)

// 按需查询仓库
export const getArea = params => apirequest.get('/area/list', { params })
